﻿namespace Lite.Common
{
    using System;

    /// <summary>
    /// A generic event args container.
    /// </summary>
    /// <typeparam name="T">
    /// The type of data to pass for the event.
    /// </typeparam>
    public class EventArgs<T>
        : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the EventArgs class.
        /// </summary>
        /// <param name="data">
        /// The data to pass for the event.
        /// </param>
        public EventArgs(T data)
        {
            this.Data = data;
        }

        /// <summary>
        /// Gets the data passed for this event.
        /// </summary>
        public T Data
        {
            get;
            private set;
        }
    }
}
